package kis.designpattern.decorator;

import org.junit.Test;

public class TestModule {
	@Test
	public void mainTest(){
		Component c = new ConcreteComponent();
		Decorator d = new MonthPrizeDecorator(c);
		Decorator sum = new SumPrizeDecorator(d);
		double zs = d.claculatePrize("zs", null, null);
		System.out.println(zs);
		System.out.println(sum.claculatePrize("zs", null, null));
		System.out.println(new SumPrizeDecorator(new MonthPrizeDecorator(new ConcreteComponent())));
	}
}
